<?php

class LogoutComponents {
	
	public static function getLogoutPage() {
		$html = '';
		$html .= <<<CONTENT
			<p>You are logging out. You will be automatically redirected to the log in page, if not click <a href="/logout?logout=1">here</a></p>
			<form id="logoutForm" action="/logout" method="post">
				<input type="hidden" name="logout" value="1" />
			</form>
CONTENT;
		return $html;
		
	}
	
	public static function getLogoutJavaScript() {
		$js = '';
		$js .= <<<CONTENT
			$(document).ready(function() {
				$('#logoutForm').submit();
			})
CONTENT;
		return $js;
	}
	
	
	
}